package com.topsec.manager.entity;

import java.io.Serializable;

import org.apache.commons.net.ftp.FTPClient;

/**
 * @author zhaoys
 * @date 2017年6月19日 下午3:01:57
 */
public class ResourceBean implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ftp服务器地址
     */
    private String host;
    /**
     * ftp 端口号 默认21
     */
    private int port = 21;
    /**
     * ftp服务器用户名
     */
    private String username;
    /**
     * ftp服务器密码
     */
    private String password;
    /**
     * ftp远程目录
     */
    private String remoteDir;

    /**
     * 设置连接属性
     *
     * @param host
     * @param username
     * @param password
     * @return
     */
    public ResourceBean(String host, String username, String password, String remoteDir) {
        this.host = host;
        this.remoteDir = remoteDir;
        this.username = username;
        this.password = password;
    }

    /**
     * 设置连接属性
     *
     * @param host
     * @param port
     * @param username
     * @param password
     */
    public ResourceBean(String host, int port, String username, String password, String remoteDir) {
        this.remoteDir = remoteDir;
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemoteDir() {
        return remoteDir;
    }

    public void setRemoteDir(String remoteDir) {
        this.remoteDir = remoteDir;
    }

}
